﻿using ErrorCode;
using MediatR;

namespace ReadAPI.Commands
{
    /// <summary>
    /// 泛型分页
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PagingCommand<T> : IRequest<APIPaging<T>> where T : class
    {
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; }
    }
}
